package com.aishua.fire.mapper;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Component;

import com.aishua.fire.entity.app.APPExerciseBasicReqInfo;
import com.aishua.fire.entity.app.APPExerciseBasicReqInfo_wcc;
import com.aishua.fire.entity.app.APPExerciseConclusionReqInfo;
import com.aishua.fire.entity.app.APPExerciseDataRespInfo;
import com.aishua.fire.entity.app.APPExerciseDelayReqInfo;
import com.aishua.fire.entity.app.Picture;
import com.aishua.fire.entity.emergencyPre.ExercisePlanDataRespInfo;
import com.aishua.fire.entity.preExercise.DepartmentRespInfo;
import com.aishua.fire.entity.preExercise.ExercisePlanInfo;
import com.aishua.fire.entity.preExercise.ExercisePlanReqInfo;
import com.aishua.fire.entity.preExercise.ExerciseStudyPlanInfo;
import com.aishua.fire.entity.preExercise.ExerciseStudyPlanReqInfo;

@Component
public interface PreExerciseMapper {

	List<ExercisePlanInfo> searchPreExerciseList(Map<String, String> pa);


	void delPreExercise(String id);

	void addPreExercise(ExercisePlanReqInfo planInfo);

	void updatePreExercise(ExercisePlanReqInfo planInfo);

	List<DepartmentRespInfo> getdepartmentInfo();

	void addStudyPlan(ExerciseStudyPlanReqInfo studyInfo);

	void addStudyPlanWithDepartment(Map<String, String> ma);

	List<ExerciseStudyPlanInfo> searchStudyPlanList(Map<String, String> pa);

	int searchStudyPlanTotal(Map<String, String> pa);

	List<DepartmentRespInfo> getDepartmentInfo(Map<String, String> pa);

	void delStudyPlan(String id);

	void updateStudyPlan(ExerciseStudyPlanReqInfo planInfo);

	List<ExercisePlanInfo> searchPreExerciseListByApp(Map<String, String> pa);

	List<ExercisePlanDataRespInfo> searchPreExerciseDataList(Map<String, String> pa);
	
	ExercisePlanDataRespInfo searchdataDetails(String id);


	List<APPExerciseDataRespInfo> searchPlanDataByApp();

	//添加演练计划总结
	void appConclusInfo(APPExerciseConclusionReqInfo appConReqInfo);

	//演练延迟
	void appPlanDelay(APPExerciseDelayReqInfo planDelay);

	//同意
	void agreeDelay(String id);

	//不同意
	void notAgreeDelay(String id);

	//添加基础信息
	void performPlan(APPExerciseBasicReqInfo appConReqInfo);

	//添加照片
	void insertsceneUrl(Picture piclist);


	List<Picture> searchSceneUrl(String id);

	/**
	 * 插入演练现场记录信息
	 * @param appConReqInfo
	 */
    void performPlan_new(APPExerciseBasicReqInfo_wcc appConReqInfo);


    /**
     * 插入演练现场记录 答题记录
     * @param appConReqInfo
     */
    void insertDrillRecord(Map<String, String> pa);


}
